package com.baidu.echarts;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class Series {
    @JsonProperty(index = 1)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;
    @JsonProperty(index = 2)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String type;
    @JsonProperty(index = 3)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String radius;
    @JsonProperty(index = 4)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<String> center;
    @JsonProperty(index = 5)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<SeriesData> data;
    @JsonProperty(index = 6)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String stack;

    public Series() {
    }
    public static Series build(){
        return new Series();
    }

    public String getName() {
        return name;
    }

    public Series setName(String name) {
        this.name = name;
        return  this;
    }

    public String getType() {
        return type;
    }

    public Series setType(String type) {
        this.type = type;
        return  this;
    }

    public String getRadius() {
        return radius;
    }

    public Series setRadius(String radius) {
        this.radius = radius;
        return  this;
    }

    public List<String> getCenter() {
        return center;
    }

    public Series setCenter(List<String> center) {
        this.center = center;
        return  this;
    }

    public List<SeriesData> getData() {
        return data;
    }

    public Series setData(List<SeriesData> data) {
        this.data = data;
        return  this;
    }

    public String getStack() {
        return stack;
    }

    public Series setStack(String stack) {
        this.stack = stack;
        return this;
    }
}
